x=float(input("请输入月前收入:"))
start=5000
x_start=x-start
if x_start<=0:
    tax=0
else:
    tax=0
if x_start>80000:
    tax=(x_start-80000)*0.45
    x_start=80000
if x_start>55000:
    tax=(x_start-55000)*0.35
    x_start=55000
if x_start>35000:
    tax=(x_start-35000)*0.30
    x_start=35000
if x_start>9000:
    tax=(x_start-9000)*0.25
    x_start=9000
if x_start>4500:
    tax=(x_start-4500)*0.20
    x_start=4500
if x_start>1500:
    tax=(x_start-1500)*0.10
    x_start=1500
    print("应缴纳个税:{:.2f}元".format(tax))